<?php
	
	$error = $_GET['error'];
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="Content-Type" content="text/html;" />
		<meta name="viewport" content="width=768px, minimum-scale=1.0, maximum-scale=1.0" />
		
		<link href="../css/style.css" rel="stylesheet" type="text/css" />
			
		<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css" />
		<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
		<script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>
	
		<script src="../lib/pathways.js"></script>
		
		<title>Pathways - Registra</title>
	
	</head>

	<body>
	
			<div data-role="header" data-theme="b">
			  <h1>Registra Struttura</h1>
			</div>
		
			<div id="container" data-role="page">
			
				<div id="main" data-role="content">
					<center>
						<b style="color: red;" id="error"><?php echo ($error ? $error : "") ; ?></b>
					</center>
				
					<h2 class="title2"></h2>
					
					
					
					<form action="../appcontroller.php?cmd=registra" method="post" 
						data-theme="c" id="form_registra" data-ajax="false">
					
						<table width="100%">
							<tr>
								<td>
									<label for="username" class="lbl">Username :</label>
									<input id="username" class="field" type="text" name="username"  />
								</td>
								<td>
									<label for="password" class="lbl">Password :</label>
									<input id="password" class="field" type="password" name="password" />
								</td>
							</tr>
							
							<tr>
								<td>
									<label for="nome" class="lbl">Nome :</label>
									<input id="nome" class="field" type="text" name="nome"  />
								</td>
								<td>
									<label for="cognome" class="lbl">Cognome :</label>
									<input id="cognome" class="field" type="text" name="cognome" />
								</td>
							</tr>
							
							<tr>
								<td colspan="2">
									<label for="struttura" class="lbl">Nome della Struttura :</label>
									<input id="struttura" class="field" type="text" name="struttura"  />
								</td>
							</tr>
							
							<tr>
								<td colspan="2">
									<label for="addr" class="lbl">Indirizzo :</label>
									<input id="addr" class="field" type="text" name="addr"  />
								</td>
							</tr>
						</table>
						
						<table width="100%">
							<tr>
								<td>
									<label for="citta" class="lbl">Citt&agrave; :</label>
									<input id="citta" class="field" type="text" name="citta"  />
								</td>
								<td width="150">
									<label for="cap" class="lbl">Cap :</label>
									<input id="cap" class="field" type="text" name="cap" />
								</td>
							</tr>
						</table>
						
						<table width="100%">
							<tr>
								<td width="70%">
									<label for="email" class="lbl">E-mail :</label>
									<input id="email" class="field" name="email" />
								</td>
								<td>
								</td>
							</tr>
						</table>
						
						
						<table width="100%">
							<tr>
								<td width="50%">
								</td>
								<td>
									<!-- <input id="btn_login" type="submit" class="button blue" value=" Registra "/><br /> -->
									<input id="btn_registra" onclick="registra();" type="button" value=" Registra "/>
								</td>
							</tr>
						</table>
						
					</form>
					
				
				</div>
				
				
				<div id="footer">
					
				</div>
				
					
				<div id="footerend"></div>
				
			</div>
			
			
		
	</body>

</html>
